//
//  MTFristViewController.m
//  MeToo
//
//  Created by 俊松何 on 2018/10/9.
//  Copyright © 2018年 tianxie. All rights reserved.
//

#import "MTFristViewController.h"
#import "MTMainViewController.h"
@interface MTFristViewController ()

@end

@implementation MTFristViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [MBProgressHUD showProcessHud:@""  toView:nil];
    [[FanqieApiHelper helper] registerUserAvatar:@"https://timgsa.baidu.com/f2d58f7c3476.jpg"
                                           name:@"hjs"
                                          phone:@"15881124302"
                                    countryCode:@"86"
                                         gender:@"0"
                                     completion:^(MTUserModel *user, MTError *mterror) {
                                         [MBProgressHUD hideHUDForView:nil];
                                         if(mterror == nil)
                                         {
                                             
                                             [UIApplication sharedApplication].keyWindow.rootViewController = [[MTMainViewController alloc] init];
                                         }
                                     }];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
